package com.mnxc.gxa.service;

import com.mnxc.gxa.dto.QueryRoleDTO;
import com.mnxc.gxa.dto.Result;
import com.mnxc.gxa.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mnxc
 * @since 2023-06-29
 */
public interface IRoleService extends IService<Role> {
    Result saveRole(Role role);

    Result deleteRole(Role role);

    Result updateRole(Role role);

    Result freezeRole(Role role);

    Result getByPageAndCondition(int page, int pageSize, QueryRoleDTO query);

    Result activeRole(Role role);

    Result getAll();
    Result mulDeleteRole(List<Long> ids);
    Result mulActiveRole(List<Long> ids);
    Result mulFreezeRole(List<Long> ids);

}
